//@author A0105543N
#ifndef BUDGETITEM_H
#define BUDGETITEM_H
#include "Item.h"

//Inherited from Item
class BudgetItem:public Item{
private:
	int Necessity; 
public:
	void writefile(char*);
	void record_from_file(ifstream&, streampos);
	int getNecessity();
	bool recordExtra();
	//pre:
	//post: record data provided by user, and return true if recording is successful otherwise false.
	bool isexpense();
	bool compare(Item&);
	void print();
};

#endif